<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>案例-双开门</title>
    <style>
        .father {
            width: 1366px;
            height: 600px;
            margin: 0 auto;
            background-image: url(./images/bg.jpg);
            display: flex;
            overflow: hidden;
        }

        .father .right {
            width: 683px;
            height: 600px;
            background-image: url(./images/fm.jpg);
            /* right 标识的取到的精灵图右面的图片 */
            background-position: right 0;
            transition: all 0.5s;
        }
        .father .left {
            width: 683px;
            height: 600px;
            background-image: url(./images/fm.jpg);
            transition: all 0.5s;
        }
        .father:hover .left {
            transform: translate(-100%);
        }
        .father:hover .right {
            transform: translate(100%);
        }
    </style>
</head>
<body>
<div class="father">
    <div class="left"></div>
    <div class="right"></div>
</div>
</body>
</html>
